setInterval(function() {
    var count = 0;
    
	if (count == 5) clearInterval(this);
    console.log("Tick no. " + count + ".");
    count++;
}, 2000);
